//
//  ListTableViewCell.m
//  CookDemo
//
//  Created by lanou3g on 15/8/30.
//  Copyright (c) 2015年 DTR. All rights reserved.
//

#import "ListTableViewCell.h"
#import "KitchenManager.h"
#import "UIImageView+WebCache.h"
@interface ListTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *detailImageView;

@property (weak, nonatomic) IBOutlet UILabel *detailNameLabel;


@end
@implementation ListTableViewCell

- (void) setCellWithPopularDetailsInfo:(PopularDetailsInfo *)popularDetailsInfo AtIndexPath:( NSInteger)indexPath{
    
    
    NSDictionary *arr=[KitchenManager defaultManager].popularDetailsInfo.sample_recipes[indexPath];
    self.detailNameLabel.text = arr[@"name"];
    [self.detailImageView sd_setImageWithURL:[NSURL URLWithString:arr[@"photo"]]];

}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
